/** 项目入口文件*/

const loaders = require('./loaders');
const express = require('express');

async function startServer() {
    const app = express();
    //加载各种功能模块
    await loaders(app);
    app.listen(3000, err => {
        if (err) {
            console.log(err);
            return;
        }
        console.log(`🛡️ Your server is ready at port 3000 🛡️`);
    });
}

startServer();